﻿<UserControl x:Class="HostApplication.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:local="clr-namespace:HostApplication"
    xmlns:mef="clr-namespace:System.ComponentModel.Composition.SilverlightControlExtensions.Controls;assembly=System.ComponentModel.Composition.SilverlightControlExtensions" 
    xmlns:inf="clr-namespace:System.ComponentModel.Composition.SilverlightControlExtensions.Infrastructure;assembly=System.ComponentModel.Composition.SilverlightControlExtensions">

    <StackPanel x:Name="LayoutRoot" Background="White">
        <mef:MefContentControl Contract="SingleControlFromXap"></mef:MefContentControl>
        <mef:MefItemsControl Contract="ManyControlsFromXap" >
            <mef:MefItemsControl.ItemsPanel>
                <ItemsPanelTemplate>
                    <StackPanel Orientation="Horizontal"/>
                </ItemsPanelTemplate>
            </mef:MefItemsControl.ItemsPanel>
        </mef:MefItemsControl>
        <mef:MefContentControl Contract="SingleControlFromAssembly"></mef:MefContentControl>
        <local:ButtonWithImports inf:Composition.Compose="True"/>
    </StackPanel>
</UserControl>
